package com.soldier;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.session.data.mongo.config.annotation.web.http.EnableMongoHttpSession;

// 使用MongoDB来缓存我们session中的数据
@EnableMongoHttpSession
@SpringBootApplication
public class SessionMongo2Application {

    public static void main(String[] args) {
        SpringApplication.run(SessionMongo2Application.class, args);
    }

}
